package org.cardoso.coyote.web.jsf;

import java.io.Serializable;

import javax.servlet.ServletContext;

import org.springframework.web.context.support.SpringBeanAutowiringSupport;

public abstract class ManagedBeanBase<T> extends AbstractManagedBeanBase<T> implements Serializable {

	private static final long serialVersionUID = -1L;

	public ManagedBeanBase() {
		super();
		initializeSpring();
	}
	
	private void initializeSpring() { 
		SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, (ServletContext) getExternalContext().getContext());
	}

}